#pragma once

#include "../comProtocol.h"

#include <string>
#include "winsock.h"

using namespace std;

// ----------
// Implementuje spojeni se serverem na strane klienta
class ComClient {
public:
	ComClient();
	~ComClient();

	int Connect(string ip, int port);
	int SendData(ComData data);
	int RecieveData(ComData* data);
private:
	SOCKET serverConnection;
};